<html>
<meta charset="utf-8">
<script src="./jquery-3.4.1.min.js"></script>
<script src="./simple_compiler.js"></script>


<head></head>

<body>




<input id="btn1" type="button" value="test"/>


<script>


$(document).ready(function(){


$('#btn1').click(function(){


var tokens=tokenizer(window.prompt('输入计算表达式，只支持加减乘除','6+5',))



var ast=parser(tokens)

alert(transformer(ast))

})



})


</script>

</body>

</html>